package com.fh.bean;


import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 
 * @TableName student
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class StudentAvgGradeBean implements Serializable {
    /**
     * 
     */
    @ApiModelProperty(value = "学生ID")
    private Integer sId;

    /**
     * 
     */
    @ApiModelProperty(value = "学生姓名")
    private String sName;
    @ApiModelProperty(value = "平均成绩")
   private Double avgScore;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    /**
     * 
     */
    public Integer getsId() {
        return sId;
    }

    /**
     * 
     */
    public void setsId(Integer sId) {
        this.sId = sId;
    }

    /**
     * 
     */
    public String getsName() {
        return sName;
    }

    /**
     * 
     */
    public void setsName(String sName) {
        this.sName = sName;
    }


    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StudentAvgGradeBean other = (StudentAvgGradeBean) that;
        return (this.getsId() == null ? other.getsId() == null : this.getsId().equals(other.getsId()))
            && (this.getsName() == null ? other.getsName() == null : this.getsName().equals(other.getsName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getsId() == null) ? 0 : getsId().hashCode());
        result = prime * result + ((getsName() == null) ? 0 : getsName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sId=").append(sId);
        sb.append(", sName=").append(sName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}